April 1, 2014 7:35 AM EDT

Jason Segel’s next big project following Monday’s finale of How I Met Your Mother is a starring role opposite Cameron Diaz in the R-rated comedy Sex Tape.

The film’s new red-band trailer reveals the Bad Teacher co-stars reuniting as married couple Annie and Jay, whose relationship has lost its sexual spark. In order to stir things up, they decide to make a sex tape on their iPad. The video is then accidentally uploaded to the Cloud and shared with almost everyone they know.

The vaguely NSFW trailer follows Annie and Jay as they try to erase their digital mistake and, somewhat surprisingly, the film appears to be one-part comedy, one-part iPad horror story. Rob Corddry, Ellie Kemper, Jack Black and Rob Lowe also star in Jake Kasdan’s movie, which hits theaters July 25.

[The Hollywood Reporter]

More Must-Read Stories From TIME

Contact us at letters@time.com.

Read More From TIME
You May Also Like